<template>
	<view>
		<view @tap="detail" class="div" style="display: flex;border-bottom: 1rpx solid #f3f3f3;padding: 20rpx 0rpx;box-sizing: border-box;" v-for="(item, index) in list1" :key="index">
			<view class="zuo" style="width: 50%;height: 100%;position: relative;">
				<view class="img" style="border-radius: 20rpx;overflow: hidden;width: 100%;height: 150rpx;">
					<image :src="item.mainImage" mode="" style="width: 100%;height: 100%;"></image>
				</view>
				<view style="position: absolute;bottom: 10rpx;right: 10rpx;font-size: 22rpx;background: rgba(51,51,51,.4);color: #fff;border-radius: 20rpx;">
					{{ item.totalTime }}
				</view>
			</view>
			<view class="you" style="padding-left: 20rpx;font-size: 20rpx;width: 50%;">
				<view class="title" style="margin: 10rpx 0rpx;font-size: 26rpx;">{{ item.title }}</view>
				<view class="name" style="margin: 10rpx 0rpx;">{{ item.nickName }}</view>
				<view class="price" style="display: flex;">
					<view style="color: #FF9900;" v-show="item.isFree == 1">￥{{ item.priceOriginal }}</view>
					<view style="color: #FF9900;" v-show="item.isFree == 0">免费</view>
					<view style="margin-left: 30rpx;">{{ item.commTotal }}人在学习</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
export default {
	name: 'list',
	props: ['list1'],

	data() {
		return {};
	},
	methods: {
		detail(){
			this.$emit("detaile")
		}
	}
};
</script>

<style lang="scss"></style>
